/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.q1.model.inheritance;

/**
 *
 * @author user
 */
public class Person {

    private String name ,address;
    public Person(String name,String address){
        this.name = name;
        this.address = address;
    
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String toString(){
        return name + " and " + address;
    } 
}
